﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="orderCfmApp.aspx.cs" Inherits="BaoJian.eshop.mn.orderCfmApp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>昭光商城：结算中心：订单确认</title>
    <style type="text/css">
        @import url("../css/Ordercfm.css");
        @import url("../css/bottom.css");
        @import url("../css/Ordercfm-ql.css");
        @import url("../css/pop_cfm.css");
    </style>

    <script language="javascript">
String.prototype.Trim=function(){return   this.replace(/(^\s*)|(\s*$)/g,"");}   
String.prototype.Ltrim   =   function(){return   this.replace(/(^\s*)/g,   "");}   
String.prototype.Rtrim   =   function(){return   this.replace(/(\s*$)/g,   "");} 
    </script>

</head>
<body>
    <table cellspacing="0" cellpadding="0" align="center" border="0">
        <tbody>
            <tr>
                <td>
                    <img height="36" src="https://ssl-images.amazon.cn/a/az-checkout_banner_confirm.gif"
                        width="559">
                </td>
            </tr>
        </tbody>
    </table>
    <br>
    <form id="form3" runat="server" name="form3">
    <input type="hidden" id="isUseGC" value="0" />
    <div id="popGiftCard" style="display: none">
        <div class="Close">
            <a href="javascript:hidegiftcardpop();">
                <img src="https://ssl-images.amazon.cn//a/az-pop-shopping-close.gif" style="padding: 2px 5px 0 0;"
                    align="right" border="0" /></a></div>
        <div class="Box">
            <div class="Icon">
                <img src="https://ssl-images.amazon.cn//a/az-pop-shopping-vote.gif" /></div>
            <hr>
            <div>
                请在输入礼品卡卡号及密码后点击“验证”，确认您的礼品卡是否使用成功!</div>
            <div class="Button">
                <a href='javascript:hidegiftcardpop();'>
                    <img src='https://ssl-images.amazon.cn//a/az-shopping-btn-close.gif' border='0' /></a></div>
        </div>
    </div>
    <div id="PopShipdate" style="display: none">
        <div class="Close">
            <a href="javascript:hideshipdatepop();">
                <img src="https://ssl-images.amazon.cn//a/az-pop-shopping-close.gif" style="padding: 2px 5px 0 0;"
                    align="right" border="0" /></a></div>
        <div class="Box">
            <div class="Icon">
                <img src="https://ssl-images.amazon.cn//a/az-pop-shopping-vote.gif" /></div>
            <hr>
            <div>
                请您选择送货时间要求或者填写特殊说明!</div>
            <div class="Button">
                <a href="javascript:hideshipdatepop();">
                    <img src="https://ssl-images.amazon.cn//a/az-shopping-btn-close.gif" border="0" /></a></div>
        </div>
    </div>
    <div id="PopShopping" style="display: none">
        <div class="Close">
            <a href="javascript:hidepop();">
                <img src="https://ssl-images.amazon.cn//a/az-pop-shopping-close.gif" style="padding: 2px 5px 0 0;"
                    align="right" border="0" /></a></div>
        <div class="Box">
            <div class="Icon">
                <img src="https://ssl-images.amazon.cn//a/az-pop-shopping-vote.gif" /></div>
            <hr>
            <div>
                请您填写发票抬头并选择发票内容，或者您的发票抬头超过21个字符，请修改后点击订单确认！</div>
            <div class="Button">
                <a href="javascript:hidepop();">
                    <img src="https://ssl-images.amazon.cn//a/az-shopping-btn-close.gif" border="0" /></a></div>
        </div>
    </div>
    <input type="hidden" id="hiddendup" name="hiddendup" value="0" />
    <div id="PopDup" style="display: none">
        <div class="Close">
            <a href="javascript:hideduppop();">
                <img src="https://ssl-images.amazon.cn//a/az-pop-shopping-close.gif" style="padding: 2px 5px 0 0;"
                    align="right" border="0" /></a></div>
        <div class="Box">
            <div class="Icon">
                <img src="https://ssl-images.amazon.cn//a/az-pop-shopping-vote.gif" /></div>
            <hr>
            <div>
                您订购的商品在24小时内已经购买并已提交订单，请您确认是否继续购买下列商品？</div>
        </div>
    </div>
    <br>
    <table cellspacing="1" cellpadding="8" width="80%" align="center" bgcolor="#acadbf"
        border="0">
        <tbody>
            <tr>
                <td bgcolor="#feffd5">
                    <font color="#990000"><strong><span class="font14"><font color="#343160">重要提示</font></span>
                        <br>
                    </strong><font color="#343160">当您选择了我们的商品和服务，即表示您已经接受了我们网站的<a href="http://www.amazon.cn:80/static/claim.asp?pageletid=footother&uid=168-2712428-1468206">使用条件</a>和相关的交易条款，
                        如果您对我们的<a href="http://www.amazon.cn:80/static/claim.asp?pageletid=footother&uid=168-2712428-1468206">使用条件</a>和交易条款不太了解，请<a
                            href="http://www.amazon.cn:80/help/default.asp?pageid=347">进入这里</a>或者联系我们的<a href="http://www.amazon.cn:80/help/cs-contact.asp">客服</a>部门,如果您有任何的建议或者意见请<a
                                href="http://www.amazon.cn:80/help/cs-contact.asp">进入这里</a> ,祝您购物愉快。 </font>
                        <br>
                        <font color="red">以支票结帐的客户请选择银行汇款作为支付方式。</font> </font>
                </td>
            </tr>
        </tbody>
    </table>
    <br>
    <table cellspacing="0" cellpadding="0" width="90%" align="center" border="0">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="4" width="100%" border="0">
                        <tbody>
                            <tr>
                                <td>
                                    <div align="left">
                                        <span class="h1"><strong>请查看您的订单,点击“订单确认”后提交订单</strong></span><strong><br>
                                        </strong>您一旦提交了订单,表示您已经同意了昭光商城的使用条件和相关交易条款。
                                        <br>
                                        <br>
                                        <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                                            <tbody>
                                                <tr>
                                                    <td valign="top" width="7" bgcolor="#3163ce" height="30">
                                                        <img height="17" src="https://ssl-images.amazon.cn/a/az-s-top-left-blue-corner.gif"
                                                            width="17">
                                                    </td>
                                                    <td bgcolor="#3163ce">
                                                        <div align="center">
                                                            <img height="21" src="https://ssl-images.amazon.cn/a/az-s-click-place-your-order.gif"
                                                                width="420">
                                                        </div>
                                                    </td>

                                                    <script language="javascript">
String.prototype.Trim=function(){return   this.replace(/(^\s*)|(\s*$)/g,"");}   
String.prototype.Ltrim   =   function(){return   this.replace(/(^\s*)/g,   "");}   
String.prototype.Rtrim   =   function(){return   this.replace(/(\s*$)/g,   "");} 

function checkshipdate(){
	var notnull;		
	var form = document.getElementById("form3");
	notnull = 0;	
	if ( document.getElementById('shippingtime').style.display =="none"){	
		return true;
	}else{			
		for(var i=0;i<document.form3.time1.length;i++){				
			if (document.form3.time1[i].checked==true){
				notnull = 1
				break;
			}
		}		
		
		if (notnull==0 && document.getElementById("remark").value.Trim() == ""){					
			showshdatepop();
			return false;
		}
		else{			
			return true;
		}
	}	
 }
 
function submitFormwithNocheck(){
	var form = document.getElementById("form3");	
	if (document.getElementById("needinvoice").checked==true){		
			if (document.getElementById("invoicetitle").value.Trim()=="" || document.getElementById("invoicecontent").value.Trim()=="^^" || document.getElementById("invoicetitle").value.Trim().length>21){
				hideduppop();
				showpop();	
				return false;					
			}
	}	
}

function submitForm()
{
	var checkdate;
	var form = document.getElementById("form3");
	checkdate = checkshipdate();	
	if (checkdate==true){		
		if (document.getElementById("needinvoice").checked==true){		
			if (document.getElementById("invoicetitle").value.Trim()=="" || document.getElementById("invoicecontent").value.Trim()=="^^" || document.getElementById("invoicetitle").value.Trim().length>21){
				showpop();	
				return false;					
			}
		}

		var is_use_card=document.getElementById("isUseGC").value;
		// alert(is_use_card);
		if(is_use_card!=0){
			 showGiftCardPop();
			 return false;
	     }

		if (document.getElementById("hiddendup").value=="1"){			
				showduppop();	
				return false;		
		}					
		form.action = "http://www.amazon.cn:80/mn/checkoutredirectApp?uid=168-2712428-1468206&placeOrder=yes";
		
		
	}else{		
		return false;
	}
}

function checkinvoice()
{	
	var checkdate;	
	checkdate = checkshipdate();	
	if (checkdate==true){	
		if (document.getElementById("needinvoice").checked==true){		
			if (document.getElementById("invoicetitle").value.Trim()=="" || document.getElementById("invoicecontent").value.Trim()=="^^" || document.getElementById("invoicetitle").value.Trim().length>21){
				showpop();	
				return false;
			}
		}

		var is_use_card=document.getElementById("isUseGC").value;
		// alert(is_use_card);
		if(is_use_card!=0){
			 showGiftCardPop();
			 return false;
	     }

		if (document.getElementById("hiddendup").value=="1"){			
			showduppop();	
			return false;		
		}		
	}else{		
		return false;
	}
	
}

function showGiftCardPop(){
	window.location.href = "#top";
	document.getElementById('popGiftCard').style.display='block';
}

function showduppop(){
	window.location.href = "#top";
	document.getElementById('PopDup').style.display='block';
	
}

function showpop(){
	window.location.href = "#top";
	document.getElementById('PopShopping').style.display='block';
	
}

function showshdatepop(){
	window.location.href = "#top";
	document.getElementById('PopShipdate').style.display='block';	
}

function hidepop(){
	document.getElementById('PopShopping').style.display='none';
	if (document.getElementById("invoicetitle").value.Trim()=="")
		document.getElementById("invoicetitle").focus();
	else if (document.getElementById("invoicecontent").value=="^^")
		document.getElementById("invoicecontent").focus();
}
function hidegiftcardpop(){
	document.getElementById('popGiftCard').style.display='none';	
}

function hideduppop(){
	document.getElementById('PopDup').style.display='none';	
}

function hideshipdatepop(){
	document.getElementById('PopShipdate').style.display='none';	
}

                                                    </script>

                                                    <td bgcolor="#3163ce" align="right" style="padding: 0 100px 0 0">
                                                        <div id="layer_finish1">
                                                            <input type="hidden" id="orderSubmit" name="orderSubmit" value="yes" />
                                                            <input type="image" alt="订单确认" height="37" src="https://ssl-images.amazon.cn//a/az-s-place-order_01.gif"
                                                                width="116" border="0" onclick="return checkinvoice()">
                                                        </div>
                                                    </td>
                                                    <td valign="top" width="7" bgcolor="#3163ce">
                                                        <img height="17" src="https://ssl-images.amazon.cn/a/az-s-top-right-blue-corner.gif"
                                                            width="17">
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table cellspacing="17" cellpadding="0" width="100%" align="center" bgcolor="#d5d5b5"
                                            border="0">
                                            <tbody>
                                                <tr>
                                                    <td valign="top">
                                                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                            <tr>
                                                                <td width="6">
                                                                    <img src="https://ssl-images.amazon.cn/a/az-s-spc-tl-inside-drksnd.gif" height="20"
                                                                        width="6">
                                                                </td>
                                                                <td bgcolor="#BBBB9E">
                                                                    <div align="center" class="font14">
                                                                        <strong>配送详情</strong></div>
                                                                </td>
                                                                <td width="6">
                                                                    <img src="https://ssl-images.amazon.cn/a/az-s-spc-tr-inside-drksnd.gif" height="20"
                                                                        width="6">
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
                                                        <table cellspacing="0" cellpadding="3" width="100%" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td width="80" bgcolor="#eeeeee">
                                                                        &nbsp;<strong>送货地址：</strong>
                                                                    </td>
                                                                    <td bgcolor="#eeeeee">
                                                                        <a href="/mn/preferenceAddressMgrApp?from=op&action=list&pn=1&usage=manaus&uid=168-2712428-1468206">
                                                                            <img height="17" src="https://ssl-images.amazon.cn//a/az-s-change.gif" width="45"
                                                                                border="0"></a>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <input type="hidden" id="hiddenProvince" name="hiddenProvince" value="01">
                                                        <table cellspacing="0" cellpadding="5" width="100%" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td bgcolor="#ffffff">
                                                                        &nbsp;姓名：<%= guestAddressModel.Name %><br>
                                                                        &nbsp;地址：<%= guestAddressModel.Address %><br>
                                                                        &nbsp;邮编：<%= guestAddressModel.PostalNUM %>
                                                                        <br>
                                                                        &nbsp;电话:
                                                                        <%= guestAddressModel.Tel %>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
                                                        <table cellspacing="0" cellpadding="3" width="100%" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td width="150" bgcolor="#eeeeee">
                                                                        &nbsp;<strong>送货方式：</strong>（<a href="http://www.amazon.cn:80/help/bj_sh_gd_city.htm">了解更多</a>）
                                                                    </td>
                                                                    <td bgcolor="#eeeeee">
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <table cellspacing="0" cellpadding="4" width="100%" bgcolor="#ffffff" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td>
                                                                        <table>
                                                                            <tbody>
                                                                                <tr>
                                                                                    <td colspan="2">
                                                                                        <strong>&nbsp;送货方式</strong>：<a href="https://www.amazon.cn:443/mn/selectShippingOpptionApplication?uid=168-2712428-1468206"><img
                                                                                            height="17" src="https://ssl-images.amazon.cn//a/az-s-change.gif" width="45"
                                                                                            border="0"></a> <font color="red">*</font> amazon.cn 卓越亚马逊送货上门范围详见：<a href="http://www.amazon.cn:80/help/bj_sh_gd_city.htm?uid=168-2712428-1468206">帮助中心</a>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td colspan="2">
                                                                                        &nbsp;送货方式：快递送货上门
                                                                                    </td>
                                                                                </tr>
                                                                            </tbody>
                                                                        </table>
                                                                        <div id="shippingtime">
                                                                            <table cellspacing="0" cellpadding="4" width="100%" border="0">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td colspan="2">
                                                                                            <strong>&nbsp;时间要求</strong>： (注:如对送货时间有特别要求请注明)
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr bgcolor="#ffffff">
                                                                                        <td>
                                                                                            <div align="right">
                                                                                                <input type="radio" id="time1" value="每天均可送货" name="time1">
                                                                                            </div>
                                                                                        </td>
                                                                                        <td>
                                                                                            工作日、双休日与假日均可送货
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr bgcolor="#ffffff">
                                                                                        <td width="10%">
                                                                                            <div align="right">
                                                                                                <input type="radio" id="time1" value="只双休日、假日送货" name="time1">
                                                                                            </div>
                                                                                        </td>
                                                                                        <td>
                                                                                            只双休日、假日送货(工作日不用送)
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr bgcolor="#ffffff">
                                                                                        <td>
                                                                                            <div align="right">
                                                                                                <input type="radio" id="time1" value="只工作日送货" name="time1">
                                                                                            </div>
                                                                                        </td>
                                                                                        <td>
                                                                                            只工作日送货(双休日、假日不用送) (注：写字楼/商用地址客户请选择)
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr bgcolor="#ffffff">
                                                                                        <td>
                                                                                            <div align="right">
                                                                                                <input type="radio" id="time1" value="学校地址白天没人，请尽量安排其他时间送货" name="time1">
                                                                                            </div>
                                                                                        </td>
                                                                                        <td>
                                                                                            学校地址/地址白天没人，请尽量安排其他时间送货 (注：特别安排可能会超出预计送货天数)
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr bgcolor="#ffffff">
                                                                                        <td colspan="2">
                                                                                            特殊说明：
                                                                                            <input type="text" id="remark" name="remark" size="50" maxlength="15" value="" /><font
                                                                                                color="red">（不能超过15个字）</font>
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>

                                                        <script type="text/javascript">
<!--
function changeSplit(){
	var splitbutton;
	var form = document.getElementById("form3");
	
	for(var i=0;i<document.form3.splitorder.length;i++){
		if (document.form3.splitorder[i].checked == true){
			splitbutton = document.form3.splitorder[i].value;
		}		
	}
	if (splitbutton!=document.getElementById("hiddensplit").value){
		window.location.href= "/mn/orderCfmApp?uid=168-2712428-1468206&splitOrders="+splitbutton;
	}
}
//-->
                                                        </script>

                                                        <div id="TitleCol">
                                                            <div style="float: left;">
                                                                商品信息： <span style="font-weight: normal;">（此订单将分为1个包裹发货！）</span></div>
                                                            <div style="float: left;">
                                                                <a href="http://www.amazon.cn:80/mn/shoppingCartApplication?uid=168-2712428-1468206">
                                                                    <img height="17" src="https://ssl-images.amazon.cn//a/az-s-change.gif" width="45"
                                                                        border="0">
                                                                </a>
                                                            </div>
                                                            <div class="Gray" style="font-weight: normal;" align="right">
                                                                预计发货时间： <span class="Date">08年09月18日</span>前&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                            </div>
                                                        </div>
                                                        <div id="Split">
                                                            <table align="center" class="SplitItem">
                                                                <tr>                                                                    
                                                                    <td>
                                                                        <div class="SplitDateLine">
                                                                            <span class="Gray">以下商品预计发货时间为：08年09月18日前 </span>
                                                                        </div>
                                                                        <asp:DataList ID="DataList1" runat="server" Width="100%">
                                                                        <ItemStyle  CssClass="Td2"/>
                                                                        <AlternatingItemStyle CssClass="Td2" />
                                                                        <ItemTemplate>
                                                                         <div id="Price">
                                                                                昭光价：￥<span class="Price"><%# DataBinder.Eval(Container.DataItem,"Price")%></span>元</div>
                                                                            <div class="Number">
                                                                                数量:<%# DataBinder.Eval(Container.DataItem,"NUM")%></div>
                                                                            <div class="Name">
                                                                                <a href='../detail.aspx?pid=<%# DataBinder.Eval(Container.DataItem,"PID")%>'
                                                                                    class="Product"><%# DataBinder.Eval(Container.DataItem,"Name")%></a></div>
                                                                            <div id='ZhuangTai' class='Gray'>
                                                                                有货</div>
                                                                            <div class='Gray'>
                                                                                <span class="Date"><%= DateTime.Today.AddDays(2).ToString("yyyy年MM月dd日") %>-- <%=DateTime.Today.AddDays(5).ToString("yyyy年MM月dd日") %> </span>发货</div>
                                                                        </ItemTemplate>
                                                                        </asp:DataList>
                                                                       
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <br>
                                                        </div>
                                                    </td>
                                                    <td valign="top" width="200">
                                                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td width="6">
                                                                        <img height="20" src="https://ssl-images.amazon.cn//a/az-s-spc-tl-inside-drksnd.gif"
                                                                            width="6">
                                                                    </td>
                                                                    <td valign="bottom" bgcolor="#bbbb9e">
                                                                        <div class="font14" align="center">
                                                                            <strong>订单价格</strong></div>
                                                                    </td>
                                                                    <td width="6">
                                                                        <img height="20" src="https://ssl-images.amazon.cn//a/az-s-spc-tr-inside-drksnd.gif"
                                                                            width="6">
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <table cellspacing="0" cellpadding="4" width="100%" bgcolor="#ffffff" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td>
                                                                        <table cellspacing="2" cellpadding="0" width="100%" border="0">
                                                                            <tbody>
                                                                                <tr>
                                                                                    <td>
                                                                                        总计价格：
                                                                                    </td>
                                                                                    <td>
                                                                                        <div align="right">
                                                                                            ￥<s><%=TotalMarketPrice%></s>元</div>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        卓越价：
                                                                                    </td>
                                                                                    <td>
                                                                                        <div align="right">
                                                                                            ￥<%= TotalPrice%>元</div>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <input type="hidden" id="grpcount" name="grpcount" value="1" />
                                                                                    <td>
                                                                                        配送费：
                                                                                    </td>
                                                                                    <td>
                                                                                        <div align="right">
                                                                                            ￥5.00元</div>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        免配送费：
                                                                                    </td>
                                                                                    <td>
                                                                                        <div align="right">
                                                                                            <font color="#FF0000">-￥5.00元</font></div>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr bgcolor="#000000">
                                                                                    <td colspan="2" height="1">
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td colspan="2">
                                                                                        <div class="font14" align="center">
                                                                                            <strong><font color="#cc0000">共计价格： ￥41.20元</font></strong></div>
                                                                                    </td>
                                                                                </tr>
                                                                            </tbody>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                            <tbody>
                                                                <tr bgcolor="#ffffff">
                                                                    <td valign="bottom" align="left">
                                                                        <img height="6" src="https://ssl-images.amazon.cn/a/az-s-bottom-left-tan-corner.gif"
                                                                            width="6" border="0">
                                                                    </td>
                                                                    <td valign="bottom" align="right">
                                                                        <img height="6" src="https://ssl-images.amazon.cn/a/az-s-bottom-right-tan-corner.gif"
                                                                            width="6" border="0">
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <br>
                                                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td width="6">
                                                                        <img height="20" src="https://ssl-images.amazon.cn/a/az-s-spc-tl-inside-drksnd.gif"
                                                                            width="6">
                                                                    </td>
                                                                    <td valign="bottom" bgcolor="#bbbb9e">
                                                                        <div class="font14" align="center">
                                                                            <strong>付款详情</strong></div>
                                                                    </td>
                                                                    <td width="6">
                                                                        <img height="20" src="https://ssl-images.amazon.cn/a/az-s-spc-tr-inside-drksnd.gif"
                                                                            width="6">
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <table cellspacing="3" cellpadding="0" width="100%" bgcolor="#ffffff" border="0">
                                                            <tr>
                                                                <td height="10">
                                                                    <iframe name="ad" frameborder="0" scrolling="no" width="100%" height="90" src="/mn/giftCardApp">
                                                                    </iframe>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td height="1" bgcolor="D5D5B5">
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
                                                        <table cellspacing="3" cellpadding="0" width="100%" bgcolor="#ffffff" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td>
                                                                        <strong>&nbsp;付款方式：</strong><br>
                                                                        &nbsp;货到付款<br>
                                                                        &nbsp; <a name="changePModeLink" id="changePModeLink" href="/mn/selectPaymentMethodApp?uid=168-2712428-1468206&NotUseVA=0">
                                                                            <img height="17" src="https://ssl-images.amazon.cn//a/az-s-change.gif" width="45"
                                                                                border="0"></a>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td bgcolor="#eeeeee">
                                                                        <span class='Date'>(以支票结帐的客户请选择银行汇款作为支付方式) </span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="1" bgcolor="#d5d5b5" height="1">
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <table cellspacing="3" cellpadding="0" width="100%" bgcolor="#ffffff" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td>
                                                                        <input type="checkbox" id="needinvoice" name="needinvoice" checked value="needinvoice" />
                                                                        <strong>&nbsp;发票开具：</strong>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td bgcolor="#eeeeee">
                                                                        <span class='Date'>
                                                                            <li>数码、手机、小家电类商品由于涉及保修必须开具商品明细（系统会自动默认）。</li>
                                                                            <li>其它商品请按下列选项选择。</li>
                                                                        </span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                            <tr>
                                                                                <td>
                                                                                    发票抬头：<input name="invoicetitle" id="invoicetitle" type="text" value="" size="16"
                                                                                        onfocus="javascript:{this.select();}" />
                                                                                    发票内容：<select name="invoicecontent" id="invoicecontent">
                                                                                        <option value=" ^^ " selected="selected"></option>
                                                                                        <option value="图书^^册">图书 </option>
                                                                                        <option value="影视^^碟">影视 </option>
                                                                                        <option value="游戏^^碟">游戏 </option>
                                                                                        <option value="软件^^碟">软件 </option>
                                                                                        <option value="资料^^件">资料 </option>
                                                                                        <option value="办公用品^^个">办公用品 </option>
                                                                                        <option value="洗涤用品^^件">洗涤用品 </option>
                                                                                        <option value="化妆品^^件">化妆品 </option>
                                                                                        <option value="体育用品^^件">体育用品 </option>
                                                                                        <option value="劳保用品^^件">劳保用品 </option>
                                                                                        <option value="服装^^件">服装 </option>
                                                                                        <option value="玩具^^件">玩具 </option>
                                                                                        <option value="饰品^^件">饰品 </option>
                                                                                        <option value="超级女声终极PK^^碟">超级女声终极PK </option>
                                                                                        <option value="手机^^个">手机 </option>
                                                                                        <option value="家电^^件">家电 </option>
                                                                                        <option value="配件^^个">配件 </option>
                                                                                        <option value="数码产品^^个">数码产品 </option>
                                                                                    </select>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                            <tbody>
                                                                <tr bgcolor="#ffffff">
                                                                    <td valign="bottom" align="left">
                                                                        <img height="6" src="https://ssl-images.amazon.cn/a/az-s-bottom-left-tan-corner.gif"
                                                                            width="6" border="0">
                                                                    </td>
                                                                    <td valign="bottom" align="right">
                                                                        <img height="6" src="https://ssl-images.amazon.cn/a/az-s-bottom-right-tan-corner.gif"
                                                                            width="6" border="0">
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table cellspacing="0" cellpadding="0" width="100%" align="center" bgcolor="#3163ce"
                                            border="0">
                                            <tbody>
                                                <tr>
                                                    <td valign="bottom" width="7" height="30">
                                                        <img height="17" src="https://ssl-images.amazon.cn/a/az-s-bottom-left-blue-corner.gif"
                                                            width="17">
                                                    </td>
                                                    <td width="420" bgcolor="#3163ce">
                                                    </td>

                                                    <script language="javascript">
String.prototype.Trim=function(){return   this.replace(/(^\s*)|(\s*$)/g,"");}   
String.prototype.Ltrim   =   function(){return   this.replace(/(^\s*)/g,   "");}   
String.prototype.Rtrim   =   function(){return   this.replace(/(\s*$)/g,   "");} 

function checkshipdate(){
	var notnull;		
	var form = document.getElementById("form3");
	notnull = 0;	
	if ( document.getElementById('shippingtime').style.display =="none"){	
		return true;
	}else{			
		for(var i=0;i<document.form3.time1.length;i++){				
			if (document.form3.time1[i].checked==true){
				notnull = 1
				break;
			}
		}		
		
		if (notnull==0 && document.getElementById("remark").value.Trim() == ""){					
			showshdatepop();
			return false;
		}
		else{			
			return true;
		}
	}	
 }
 
function submitFormwithNocheck(){
	var form = document.getElementById("form3");	
	if (document.getElementById("needinvoice").checked==true){		
			if (document.getElementById("invoicetitle").value.Trim()=="" || document.getElementById("invoicecontent").value.Trim()=="^^" || document.getElementById("invoicetitle").value.Trim().length>21){
				hideduppop();
				showpop();	
				return false;					
			}
	}	
}

function submitForm()
{
	var checkdate;
	var form = document.getElementById("form3");
	checkdate = checkshipdate();	
	if (checkdate==true){		
		if (document.getElementById("needinvoice").checked==true){		
			if (document.getElementById("invoicetitle").value.Trim()=="" || document.getElementById("invoicecontent").value.Trim()=="^^" || document.getElementById("invoicetitle").value.Trim().length>21){
				showpop();	
				return false;					
			}
		}

		var is_use_card=document.getElementById("isUseGC").value;
		// alert(is_use_card);
		if(is_use_card!=0){
			 showGiftCardPop();
			 return false;
	     }

		if (document.getElementById("hiddendup").value=="1"){			
				showduppop();	
				return false;		
		}					
		form.action = "http://www.amazon.cn:80/mn/checkoutredirectApp?uid=168-2712428-1468206&placeOrder=yes";
		
		
	}else{		
		return false;
	}
}

function checkinvoice()
{	
	var checkdate;	
	checkdate = checkshipdate();	
	if (checkdate==true){	
		if (document.getElementById("needinvoice").checked==true){		
			if (document.getElementById("invoicetitle").value.Trim()=="" || document.getElementById("invoicecontent").value.Trim()=="^^" || document.getElementById("invoicetitle").value.Trim().length>21){
				showpop();	
				return false;
			}
		}

		var is_use_card=document.getElementById("isUseGC").value;
		// alert(is_use_card);
		if(is_use_card!=0){
			 showGiftCardPop();
			 return false;
	     }

		if (document.getElementById("hiddendup").value=="1"){			
			showduppop();	
			return false;		
		}		
	}else{		
		return false;
	}
	
}

function showGiftCardPop(){
	window.location.href = "#top";
	document.getElementById('popGiftCard').style.display='block';
}

function showduppop(){
	window.location.href = "#top";
	document.getElementById('PopDup').style.display='block';
	
}

function showpop(){
	window.location.href = "#top";
	document.getElementById('PopShopping').style.display='block';
	
}

function showshdatepop(){
	window.location.href = "#top";
	document.getElementById('PopShipdate').style.display='block';	
}

function hidepop(){
	document.getElementById('PopShopping').style.display='none';
	if (document.getElementById("invoicetitle").value.Trim()=="")
		document.getElementById("invoicetitle").focus();
	else if (document.getElementById("invoicecontent").value=="^^")
		document.getElementById("invoicecontent").focus();
}
function hidegiftcardpop(){
	document.getElementById('popGiftCard').style.display='none';	
}

function hideduppop(){
	document.getElementById('PopDup').style.display='none';	
}

function hideshipdatepop(){
	document.getElementById('PopShipdate').style.display='none';	
}


                                                    </script>

                                                    <td bgcolor="#3163ce" align="right" style="padding: 0 100px 0 0">
                                                        <div id="layer_finish1">
                                                            <input type="hidden" id="orderSubmit" name="orderSubmit" value="yes" />
                                                            <input type="image" alt="订单确认" height="37" src="https://ssl-images.amazon.cn//a/az-s-place-order_01.gif"
                                                                width="116" border="0" onclick="return checkinvoice()">
                                                        </div>
                                                    </td>
                                                    <td valign="bottom" width="7">
                                                        <img height="17" src="https://ssl-images.amazon.cn/a/az-s-bottom-right-blue-corner.gif"
                                                            width="17">
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    </form>
    <div align="center">
        您有礼品卡吗?如果有,在您付账前请输入您的礼品卡号码。<br>
        如果您有任何困难，如果您想了解关于如何下订单的信息请浏览我们的<a href="https://www.amazon.cn/help/finalpage.asp?pageid=245&uid=168-2712428-1468206"
            target="_blank">帮助</a>页面。
    </div>
    <div align="center">
        <br>
        <a href="http://www.amazon.cn/?uid=168-2712428-1468206">amazon.cn 首页</a> | <a href="http://www.amazon.cn/help/default.asp?uid=168-2712428-1468206">
            帮助</a> | <a href="https://www.amazon.cn/youraccount/default.asp?uid=168-2712428-1468206">
                我的帐户</a> | <a href="http://www.amazon.cn/mn/shoppingCartApplication?uid=168-2712428-1468206">
                    我的购物车</a><br>
        <br>
        <a href="http://www.amazon.cn/static/yinxiangxukezheng.htm?uid=168-2712428-1468206"
            target="_blank">音像制品经营许可证号 京销0272</a> <a href="http://www.miibeian.gov.cn/" target="_blank">
                京ICP证010225号</a><a href="http://www.amazon.cn/static3/wj_060117_Final_Clean.asp?uid=168-2712428-1468206">
                    <img height="48" src="https://ssl-images.amazon.cn//b/biaoshi.gif" width="40" align="middle"
                        border="0"><img height="40" src="https://ssl-images.amazon.cn//d/dzsw_cxlm_lll.gif"
                            width="124" align="middle" border="0"></a> <a href="http://www.amazon.cn/static/claim.asp?uid=168-2712428-1468206&pageletid=footother">
                                <br>
                                使用条件</a> | <a href="http://www.amazon.cn:80/static3/wj_060117_final.asp?uid=168-2712428-1468206">
                                    隐私声明</a> Copyright &copy; 1999 - 2006 amazon.cn All
        Rights Reserved
    </div>
</body>
</html>
